<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<div id="categoriesManagement">

	<h2><fmt:message key="header.categoriesManagement"/></h2>

	<form:form modelAttribute="categoryManagementBean">
		<div class="middle_col">
			<div>
				<label class="title"><fmt:message key="site.categories"/>:</label>
			</div>
			<div class="categories_holder">
				<form:select path="categoryIds" multiple="multiple">
					<c:if test="${not empty categories}">
						<c:forEach var="category" items="${categories}">
							<option value="${category.id}">${category.name}</option>
						</c:forEach>
					</c:if>
				</form:select>
			</div>
		</div>
		<div class="btn_row">
			<input type="image" name="_eventId_add" value="<fmt:message key="button.add"/>" src="<c:url value="/images/buttons/add_btn.PNG"/>"/>
			<input type="image" name="_eventId_edit" value="<fmt:message key="button.edit"/>" src="<c:url value="/images/buttons/edit_btn.PNG"/>"/>
			<input type="image" name="_eventId_delete" value="<fmt:message key="button.delete"/>" src="<c:url value="/images/buttons/delete_btn.PNG"/>"/>
		</div>
	</form:form>
</div>